home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / misc_pto / bc7stub / bc7stub.doc next >
Text File  |  1990-03-13  |  2KB  |  45 lines

  1.  
  2.   BC7STUB.DOC  03-14-90  T.E.M.
  3.   Benchmark the effect of linking Microsoft `stub` files.
  4.   
  5.   STUB FILES.
  6.   ----------
  7.   Stub files are .OBJ files which block certain pieces of runtime code
  8.   from being included in the .EXE file being created by the LINK step.
  9.   It is up to the user to determine (using the documentation) which
  10.   stub files can be used.  For example: INPUT, VAL, and READ statements
  11.   but use only long integer math variables and strings (no floats)
  12.   do not really need floating point math support.  You can safely
  13.   link the NOFLTIN.OBJ stub file to your program and reduce the .EXE
  14.   file size by about 12 k!
  15.  
  16.  
  17.  
  18.   Source file.............. : CRLF.BAS from BC 7.0 dist disks (slightly modif)
  19.  
  20.   Compile statement........ : BC crlf /o/e/x;
  21.  
  22.   Approach................. : Link one, two, three, etc. stub files
  23.  
  24.   Most significant findings : (1.) The NOFLTIN.OBJ stub saved almost 12 k.
  25.                               (2.) The NOCOM.OBJ   stub saved almost  3 k.
  26.  
  27.   Test Results............. :
  28.  
  29.   .EXE     Bytes
  30.   Size     Saved    Description
  31.   ------   ------   ----------------------------------------------------------
  32.   40,920        0   With NO stub files: just `LINK crlf;`
  33.  
  34.   28,804   12,116   LINK /NOE crlf nofltin;
  35.  
  36.   27,768    1,036   LINK /NOE crlf nofltin noedit;
  37.  
  38.   24,662    3,106   LINK /NOE crlf nofltin noedit nocom;
  39.  
  40.   23,934      728   LINK /NOE crlf nofltin noedit nocom nolpt;
  41.  
  42.   22,670    1,264   LINK /NOE crlf nofltin noedit nocom nolpt smallerr;
  43.  
  44.  
  45.